package com.medical.data.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
@AllArgsConstructor
@NotBlank
@Accessors(chain = true)
public class UpdateFormVo {

    @NotBlank(message = "表单名称不可为空")
    @Length(min = 3,max = 10,message = "表单名称不能少于3个字符，超过10个字符")
    @ApiModelProperty(value = "表单名称")
    private String formName;

    @NotBlank(message = "表单id不可为空")
    @ApiModelProperty(value = "表单id")
    private String formId;

}
